

***************************************************
***************************************************
***** generate main movers table, all columns *****
***************************************************
***************************************************
clear all 
set more off

cap log close 
cap mkdir "$output/online_estimates"

//load tau estimates 
use "$paperinputs/CIP_state_tables_all_groups.dta"

//keep only relevant variables 
keep tau state pay_type_pooled

//generate new variables/rename existing ones 
gen payer = "Medicaid"
replace payer = "Medicare" if pay_type_pooled == 2 
replace payer = "Commercial" if pay_type_pooled == 3
drop pay_type_pooled

export delimited "$output/online_estimates/tau_estimates.csv", replace
